<script setup>
import Header from '@/components/sc_header/App.vue'
import Breadcrumb from '@/components/breadcrumb/App.vue'
import Sidebar from '@/components/sidebar/App.vue'
import Footer from '@/components/sc_footer/App.vue'
import {ref} from "vue";
import img from '@/assets/img/static/fnpt_cjyyzx.png'
const activeKey = ref(0)

const handleSidebarClick = ( key ) => {
  console.log( key );
  activeKey.value=key
}


</script>

<template>
  <Header></Header>
  <div class="main-container">

    <!-- 在线留言 -->
    <div class="content-section">
      <div class="section-header">
        <h2 class="section-title">📩 在线留言</h2>
        <p class="section-subtitle">Online Message</p>
      </div>
      <div class="section-content">
        <div class="contact-form">
          <form>
            <div class="form-group" style="opacity: 1; transform: translateY(0px); transition: opacity 0.6s 0.3s, transform 0.6s 0.3s;">
              <label for="name" class="form-label">姓名</label>
              <input type="text" id="name" class="form-control" placeholder="请输入您的姓名">
            </div>
            <div class="form-group" style="opacity: 1; transform: translateY(0px); transition: opacity 0.6s 0.4s, transform 0.6s 0.4s;">
              <label for="email" class="form-label">邮箱</label>
              <input type="email" id="email" class="form-control" placeholder="请输入您的邮箱">
            </div>
            <div class="form-group" style="opacity: 1; transform: translateY(0px); transition: opacity 0.6s 0.5s, transform 0.6s 0.5s;">
              <label for="phone" class="form-label">电话</label>
              <input type="tel" id="phone" class="form-control" placeholder="请输入您的电话">
            </div>
            <div class="form-group" style="opacity: 1; transform: translateY(0px); transition: opacity 0.6s 0.6s, transform 0.6s 0.6s;">
              <label for="subject" class="form-label">主题</label>
              <select id="subject" class="form-control">
                <option value="">请选择留言主题</option>
                <option value="policy">政策咨询</option>
                <option value="investment">投资合作</option>
                <option value="startup">创业支持</option>
                <option value="other">其他事项</option>
              </select>
            </div>
            <div class="form-group" style="opacity: 1; transform: translateY(0px); transition: opacity 0.6s 0.7s, transform 0.6s 0.7s;">
              <label for="message" class="form-label">留言内容</label>
              <textarea id="message" class="form-control" placeholder="请输入您的留言内容"></textarea>
            </div>
            <div style="text-align: center;">
              <button type="submit" class="submit-btn">提交留言</button>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
  <Footer></Footer>

</template>

<style scoped>


/* 主要内容区域 */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 页面标题区域 */
.page-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-title {
  font-size: 36px;
  color: #1e3c72;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.page-description {
  font-size: 16px;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 内容区块样式 */
.content-section {
  margin-bottom: 60px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.content-section:hover {
  transform: translateY(-5px);
}

.section-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 25px 30px;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  opacity: 0.9;
}

.section-content {
  padding: 35px;
}

/* 联系方式网格布局 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.contact-card {
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(30, 60, 114, 0.15);
  border-color: #4facfe;
}

.contact-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="2.5" fill="rgba(255,255,255,0.1)"/></svg>');
}

.contact-info {
  padding: 25px;
}

.contact-name {
  font-size: 20px;
  color: #1e3c72;
  font-weight: bold;
  margin-bottom: 12px;
}

.contact-type {
  display: inline-block;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 15px;
}

.contact-details {
  color: #666;
  line-height: 1.7;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contact-icon {
  margin-right: 10px;
  color: #4facfe;
  font-size: 18px;
}

/* 地图容器 */
.map-container {
  width: 100%;
  height: 400px;
  background: #e9f5ff;
  border-radius: 12px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #1e3c72;
  position: relative;
  overflow: hidden;
}

.map-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="rgba(30,60,114,0.2)" stroke-width="2"/><circle cx="30" cy="30" r="3" fill="rgba(30,60,114,0.5)"/><circle cx="70" cy="50" r="3" fill="rgba(30,60,114,0.5)"/><circle cx="50" cy="70" r="3" fill="rgba(30,60,114,0.5)"/></svg>');
}

/* 联系表单 */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background: linear-gradient(135deg, #f8fbff 0%, #f0f8ff 100%);
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1e3c72;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #4facfe;
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 60, 114, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-menu {
    gap: 20px;
  }

  .nav-menu a {
    font-size: 14px;
    padding: 8px 10px;
  }

  .page-title {
    font-size: 28px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .main-container {
    padding: 20px 15px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section {
  animation: fadeInUp 0.6s ease-out;
}

.content-section:nth-child(2) {
  animation-delay: 0.1s;
}

.content-section:nth-child(3) {
  animation-delay: 0.2s;
}

.content-section:nth-child(4) {
  animation-delay: 0.3s;
}


</style>